﻿using DevExpress.CodeRush.StructuralParser;
using DX_Contrib.Painting;

namespace Blazing.DXCodeExtensions.Settings
{
    public class MemberSettings
    {
        public PaintOptions Public = new PaintOptions();
        public PaintOptions Protected = new PaintOptions();
        public PaintOptions ProtectedInternal = new PaintOptions();
        public PaintOptions Internal = new PaintOptions();
        public PaintOptions Private = new PaintOptions();

        public virtual PaintOptions GetScopedOptions(IMemberElement Member)
        {
            if (Member == null)
            {
                return null;
            }
            switch (Member.Visibility)
            {
                case MemberVisibility.Public:
                    return Public;
                case MemberVisibility.ProtectedInternal:
                    return ProtectedInternal;
                case MemberVisibility.Internal:
                    return Internal;
                case MemberVisibility.Protected:
                    return Protected;
                case MemberVisibility.Private:
                    return Private;
            }

            return null;
        }
    }
}



